package controller;

import po.User;
import service.UserService;
import utils.URLMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Administrator on 2018/1/3.
 */
public class UserController {
    @URLMapping(url = "/findAllUser")
    public String findAll(HttpServletRequest request, HttpServletResponse response){
        UserService userService = new UserService();
        List<User> list = userService.findAllUser();
        request.setAttribute("list",list);
        System.out.println(list);
        return "index.jsp";
    }
}
